//
//  NSData+Hash.h
//  ITC_iOS
//
//  Created by Benz.L on 27/08/2018.
//  Copyright © 2018 Benz.L. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface NSData (Hash)

+ (NSString *)AES256EncryptText:(NSString *)plain key:(NSString *)key;
+ (NSString *)AES256DecryptText:(NSString *)plain key:(NSString *)key;
/**
 @brief 字符串可通过UTF-8转成data再AES
 */
- (NSData *)AES128EncryptWithKey:(NSString *)key iv:(NSString *)iv;
- (NSData *)AES128DecryptWithKey:(NSString *)key iv:(NSString *)iv;
- (NSData *)AES256EncryptWithKey:(NSString *)key;
- (NSData *)AES256DecryptWithKey:(NSString *)key;
- (NSString *)base64Encoded;
- (NSString *)base64EncodedWithlineLength:(NSUInteger) lineLength;
@end
